package test.y2019.rubbish;

import learn.baidu.OnlyWord;
import cn.hutool.core.lang.Console;
import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author 宋贤坤
 * @date 2019/5/16 9:48
 */
public class test12 {
    public static void main(String[] args) {
        OnlyWord onlyWord = new OnlyWord();
        onlyWord.setId(100);
        onlyWord.setDisplay(false);
        onlyWord.setWord("word----");
        onlyWord.setWord_name("word-name--");
        Console.error(onlyWord.toString());
        System.out.println(JSONObject.toJSONString(onlyWord));

        HashMap<String, String> map = new HashMap<>(16);
        map.put("id", "100");
        map.put("isDisplay", "false");
        map.put("word", "word----");
        map.put("word_name", "word-name--");
        Console.error(JSONObject.toJSONString(map));
    }
}
